package com.shenmazong.library.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.shenmazong.library.entity.TaskTheoryEs;
import com.shenmazong.library.entity.TbTaskTheoryLibrary;
import com.shenmazong.vo.RandomTheoryVo;
import com.shenmazong.vo.TaskTheoryVo;
import com.shenmazong.vo.TheoryParam;
import org.apache.ibatis.annotations.Mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

/**
 * mapper Qi
 */
@Mapper
@Component
public interface TbTaskTheoryLibraryMapper extends BaseMapper<TbTaskTheoryLibrary> {

    IPage<TaskTheoryVo> selectTaskTheoryLibraryList(IPage<TbTaskTheoryLibrary> page, Map<String, Object> paramMap);

    List<TbTaskTheoryLibrary> selectTheoryList(TheoryParam param);

    List<TaskTheoryEs> selectAllTheoryNotToEs();

    void updateToEsById(Long theoryId);

    TaskTheoryEs selectTheoryNotToEsById(Long theoryId);
}




